<template>
  <van-sticky>
    <van-nav-bar :title="titleway"  >
      <div  @click="onClickLeft" slot="left">
        <van-icon name="arrow-left" />
        <van-icon v-show="$route.meta.icc" class="icc" :name="icc" />
      </div>
      <phoneDom slot="right"></phoneDom>
    </van-nav-bar>
  </van-sticky>
</template>

<script>
import phoneDom from "./phone";
import icc from "./icc.png";
export default {
  components: {
    phoneDom,
 
  },
  data() {
    return {
         icc
    }
  },
  computed: {
    titleway() {
      if (this.$route.query.type == 1 && this.$route.name == "qgList") {
        this.$route.meta.title = "我的求购";
      } else if (this.$route.query.type == 0 && this.$route.name == "qgList") {
        this.$route.meta.title = "我的供应";
      }
      return this.$route.meta.title || this.$route.query.menuname;
    }
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    }
  }
};
</script>

<style scoped lang="less">
.icc{
  font-size:25px
}

</style>
